<template>
  <div>
    <el-menu
      style="width: 200px; height: calc(100vh - 50px)"
      default-active="user"
      class="el-menu-vertical-demo"
      :default-openeds="openeds"
    >
      <el-sub-menu index="1">
        <template #title>
          <el-icon><setting /></el-icon>
          <span>系统管理</span>
        </template>
        <el-menu-item index="user" @click="change1">用户管理</el-menu-item>
        <el-menu-item index="beiwang" @click="change2">备忘录管理</el-menu-item>
      </el-sub-menu>
    </el-menu>
  </div>
</template>
<script>
import { Setting } from "@element-plus/icons-vue";
export default {
  name: "AsideUI",
  components: {
    Setting,
  },
  data() {
    return {
      openeds: ["1"],
      uniqueOpened: false,
    };
  },
  methods: {
    change1() {
      this.$router.push("/home");
    },
    change2() {
      this.$router.push("/beiwang");
    },
  },
};
</script>